package com.itheima.Test05;

//创建一个子类Manager,他继承Employee;
public class Manager extends Employee {
    Clerk C;

    public Manager() {
    }

    public Manager(String workid, String name, String depart) {
        super(workid, name, depart);
    }

    public Clerk getC() {
        return C;
    }

    public void setC(Clerk C) {
        this.C = C;
    }

    @Override
    public void showMsg() {
        super.showMsg();
        System.out.println("他的职员是" + C.getName());
    }
}
